package com.anzia.study_1;

import com.anzia.study_1.slice.AbilitySlice2;
import com.anzia.study_1.slice.MainAbilitySlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;
import ohos.agp.components.Button;
import ohos.agp.components.Component;
import ohos.hiviewdfx.HiLog;
import ohos.hiviewdfx.HiLogLabel;

public class MainAbility extends Ability {

	public static final HiLogLabel HI_LOG_LABEL = new HiLogLabel(HiLog.LOG_APP, 0x00101, "MainAbility");

	@Override
	public void onStart(Intent intent) {
		String str = "测试";
		HiLog.info(HI_LOG_LABEL, "========onStart方法运行了: %{public}s", str);
		super.onStart(intent);
		super.setMainRoute(MainAbilitySlice.class.getName());

		// action要在config.json中声明，entry指的是slice的文件路径
		super.addActionRoute("abilityslice1", "com.anzia.study_1.slice.Ability1");

	}

}
